<template>
	<view class="card-page">
		<view class="create-box">
			<view class="box">
				<text class="iconfont icon-zhengjian"></text>
				<view class="text">你还没有自己的名片，快去创建</view>
			</view>
			<button class="btn" @click="goCreate">
				<u-icon name="plus" color="#fff" size="32rpx" bold></u-icon>
				<text class="text">创建名片</text>
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				
			}
		},
		onShow () {
			if (false) {
				uni.redirectTo({
					url: '/pages/my/card/card'
				})
			}
		},
		methods: {
			goCreate () {
				uni.navigateTo({
					url: '/pages/my/card/editInfo'
				})
			}
		}
	}
</script>

<style lang="scss">
.card-page {
	min-height: 100%;
	.create-box {
		height: 100vh;
		background-color: #eef7f3;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.box {
			text-align: center;
			.iconfont {
				color: #cccccc;
				font-size: 177rpx;
			}
			.text {
				margin-top: 4rpx;
				color: #333333;
				font-size: 28rpx;
			}
		}
		.btn {
			margin-top: 88rpx;
			border-radius: 100rpx;
			width: 500rpx;
			height: 100rpx;
			line-height: 100rpx;
			background: linear-gradient(90deg, #29d144, #26bccf);
			display: flex;
			align-items: center;
			justify-content: center;
			.text {
				margin-left: 4rpx;
				color: #fff;
				font-size: 32rpx;
				font-weight: bold;
			}
		}
	}
}
</style>
